package com.aaa.dao;

import com.aaa.entity.Dept;
import com.aaa.entity.DeptVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author ：Teacher陈（86521760@qq.com）
 * @date ：Created in 2022/8/15 10:04
 * @description：
 * @modified By：
 * @version:
 */
public interface DeptDao {
    List<Map<String ,Object>> queryAll(Map map);
    List<Dept> queryAllDept();
    //List<Dept> queryAllDeptByCondition(@Param("xxx") String dname, @Param("yyy") String loc);
   /* List<Dept> queryAllDeptByCondition(String dname, String loc);*/
    //List<Dept> queryAllDeptByCondition(Map map);
    List<Dept> queryAllDeptByEntity(Dept dept);
    int  save(Dept dept);
    int  deleteById(Integer deptno);
    int  deleteByIds(@Param("ids") List<Integer> ids);

    /**
     * @create by: Teacher陈（86521760@qq.com）
     * @description: 查询部门人数超过5的部门信息
     * @create time: 2022/8/16 9:35
     * @return
     */
    /*List<Dept> queryAllDeptByCondition(Map map);*/
    List<DeptVo> queryAllDeptByCondition(Map map);

    Dept queryDeptById(Integer id);
}
